import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from 'typeorm';
import { Exclude, Expose, Transform, Type } from 'class-transformer';
import { CommonEntity } from './common.entity';

@Entity('sys_staff_role')
export class SysStaffRoleEntity {
    // 将 int 类型的id转成string类型，防止前端精度缺失

    @PrimaryGeneratedColumn({ type: 'bigint' })
    id: string;

    @Column({ comment: '职工id',type: 'bigint' })
    staffId: number;

    @Column({ comment: '角色id',type: 'bigint'})
    roleId: number;

}    